export const routes = [
  {
    path: '/',
    name: 'Main',
    component: () => import('../views/Main.vue'),

    children: [
      {
        path: 'home',
        alias: '',
        name: 'Home',
        component: () => import('../views/Home.vue'),
      },
      {
        path: 'menu',
        name: 'Menu',
        component: () => import('../views/Menu.vue'),
      },
      {
        path: 'shopbag',
        name: 'Shopbag',
        component: () => import('../views/Shopbag.vue'),
      },
      {
        path: 'my',
        name: 'My',
        component: () => import('../views/My.vue'),
      }
    ]
  },
  {
    path: '/details',
    name: 'Details',
    component: () => import('../views/Details.vue'),
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/User.vue'),
    children: [
      {
        path: '/logon',
        alias: '',
        name: 'Logon',
        component: () => import('../views/Logon.vue'),
      },
      {
        path: '/retrievepassword',
        name: 'Retrievepassword',
        component: () => import('../views/Retrievepassword.vue'),
      },
      {
        path: '/modifypassword',
        name: 'Modifypassword',
        component: () => import('../views/Modifypassword.vue'),
      },
    ]
  },
  {
    path: '/orderSettlement',
    name: 'OrderSettlement',
    component: () => import('../views/OrderSettlement.vue'),
  },
  { //地址列表
    path: '/addressList',
    name: 'AddressList',
    component: () => import('../views/AddressList.vue'),
  },
  { // 添加 编辑 地址
    path: '/addEditLand/:aid?',
    name: 'AddEditLand',
    component: () => import('../views/AddEditLand.vue'),
  },
  { // 个人资料  
    path: '/personalData',
    name: 'PersonalData',
    component: () => import('../views/PersonalData.vue'),
  },
  { // 搜索商品
    path: '/myOrder',
    name: 'MyOrder',
    component: () => import('../views/MyOrder.vue'),
  },
  { // 我的收藏
    path: '/myCollection',
    name: 'MyCollection',
    component: () => import('../views/MyCollection.vue'),
  },
  { // 安全中心
    path: '/securityCenter',
    name: 'SecurityCenter',
    component: () => import('../views/SecurityCenter.vue'),
  },
  { // 搜索商品
    path: '/searchForproducts',
    name: 'SearchForproducts',
    component: () => import('../views/SearchForproducts.vue'),
  },

]